package graduation.service.Impl;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import graduation.dao.MeetingDao;
import graduation.entity.Meeting;
import graduation.service.MeetingService;
@Service
@Transactional
public class MeetingServiceImpl implements MeetingService{
	@Autowired
	private MeetingDao meetingDaoImpl;

	/**
	 * 添加
	 */
	@Override
	public void add(Meeting meeting) {
		// TODO Auto-generated method stub
		meetingDaoImpl.add(meeting);
	}
	/*
	 * 通过id删除(non-Javadoc)
	 * @see graduation.service.MeetingService#deleteById(int)
	 */
	@Override
	public void deleteById(int id) {
		// TODO Auto-generated method stub
		meetingDaoImpl.deleteById(id);
	}
	/**
	 * 获取全部用户
	 */
	@Override
	public List getAllMeeting() {
		// TODO Auto-generated method stub
		return meetingDaoImpl.getAllMeeting();
	}
	
}
